package com.shop.util;

import com.shop.service.IOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class CancleOrder {
    @Autowired
    IOrdersService orderService;
    @Scheduled(fixedRate =1000*60 )
    public void cancleOrder(){
        orderService.cancleOrder();
    }
}
